package com.managertrade.dto.vo;

import com.managertrade.dao.mysql.entity.UserFollowTrader;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class WatchedTraderVO {
    private String nickName;
    private String uniqueCode;
    private BigDecimal pnl;
    private BigDecimal pnlRatio;
    public WatchedTraderVO(UserFollowTrader followTrader) {
        this.uniqueCode = followTrader.getLeadTraderId();
        this.nickName = followTrader.getNickName();
        this.pnl = followTrader.getPnl();
        this.pnlRatio = followTrader.getPnlRatio();
    }

    //最新开仓时间
    private String update_opentime;
    //方向
    private String update_side;
    //交易产品
    private String update_instId;
    //杠杆倍数
    private String update_lever;
    //最新未实现收益
    private String update_upl;
    //胜率
    private String winRatio;

    // 是否正在跟单
    private Boolean isFollowing = true;

    // 当前跟单累计盈利
    private BigDecimal totalPnl = BigDecimal.ZERO;

    // 跟单次数
    private Integer followCount = 0;

    // 盈利次数
    private Integer winCount = 0;
}
